package com.wyw.design.model.learning.behavioral.emptyobject;

/**
 * @Title   具体商品类
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/19 15:38
 * Update History:
 * Author        Time            Content
 */
public class ConcreteGoods extends AbstractGoods {
    public ConcreteGoods(String isbn, String name, Double price) {
        this.isbn = isbn;
        this.name = name;
        this.price = price;
    }

    @Override
    public void show() {
        System.out.println("商品名：" + this.name + "，价格：" + this.price + "元");
    }
}
